package com.jiudaoliu.homeprototype.enums;

/**
 * @Description:枚举
 *
 * 注意:程序内部使用字符串的时候必须定义常量类或者使用枚举类,推荐使用枚举类;
 * @Author: 陈建
 * @date: 2018/6/6 9:43
*/

public enum RESPONSE_ENUM {
    SUCCESS_200(200, "Success!"), FAIL_404(404, "Unrelated resources!"), FAIL_500(500, "Service exception!");
    private Integer code;
    private String message;

    RESPONSE_ENUM() {
    }

    RESPONSE_ENUM(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
